import path from 'path';

const path1 = path.join('aa/bb/cc', '../dd.txt');
const path2 = path.resolve('aa/bb/cc', '../dd.txt');
const path1r = path.join('aa/bb/cc', './dd.txt');
const path2r = path.resolve('aa/bb/cc', './dd.txt');
console.log('path1=', path1);
console.log('path2=', path2);
console.log('path1r=', path1r);
console.log('path2r=', path2r);
// path1= aa\bb\dd.txt
// path2= D:\myProject\node-demo-study\apps\ssr\aa\bb\dd.txt
// path1r= aa\bb\cc\dd.txt
// path2r= D:\myProject\node-demo-study\apps\ssr\aa\bb\cc\dd.txt
